package com.xiyun.easyapi.dao;

import com.xiyun.easyapi.controller.request.UserReq;
import com.xiyun.easyapi.model.Menu;
import com.xiyun.easyapi.model.Module;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface UserDao {
    @MapKey("id")
    List<Map<String, Object>> list(UserReq.list param);

    List<Menu> menu(@Param("userId") Long userId);

    List<Module> module(@Param("userId") Long userId, @Param("tag") String tag);
}